﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace PPAP.WebControls
{
    public class My97 : TextBox
    {

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            //this.ReadOnly = true ;


        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if (this.Enabled == true)
            {
                //this.ToolTip = "双击清除";

                this.Attributes.Add("onclick", "WdatePicker()");
                //this.Attributes.Add("ondblclick", "this.value=''");
                //this.Style.Add( "cursor:" , "hand" ) ;
            }

        }


        protected override void Render(HtmlTextWriter writer)
        {
            base.Render(writer);

            //if (this.Enabled == true)
            //{
            //    writer.Write("<img style='cursor:hand' src='../Images/menu/calendar2.gif' onclick='calendar( document.all." + this.ClientID + " )' align='absmiddle'>");
            //}

        }

    }
}
